Skip to main content

The Go driver

About

To use the Go driver, import it as a Go package into your program using the import statement, then open a client connection to a URL, with username and password, using the API. This results in a handle with which to create and edit objects for collections, documents, nodes, and edges. These database objects are mapped to types in Go. The methods for these types are used to read and write data.

Some operations (like deleting a database) cannot easily be done using the API, as they are too dangerous.

Supported versions

  • ArangoDB versions 3.1 and up.
    • Single server & cluster setups
    • With or without authentication
  • Go 1.7 and up.

Go dependencies

None (Additional error libraries are supported).

Driver Installation

The official driver can be found here

To use the driver, first, fetch the sources into your GOPATH.

go get github.com/arangodb/go-driver
 
Help us improve

Anything unclear or buggy in this tutorial? Provide Feedback